﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoTest.Business.Dto.UserInfo
{
    /// <summary>
    /// 登录Dto
    /// </summary>
    public class UserLoginDto
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Display(Name = "用户名")]
        [Required(AllowEmptyStrings = false,ErrorMessage ="{0}不能为空")]
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 密码
        /// </summary>
        [Display(Name = "密码")]
        [Required(AllowEmptyStrings = false, ErrorMessage = "{0}不能为空")]
        public string Password { get;set; } = string.Empty;
    }
}
